home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
pdcurs21
/
portable
/
nl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-06-18
|
1KB
|
49 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef nl
#ifdef PDCDEBUG
char *rcsid_nl = "$Header: C:\CURSES\portable\RCS\nl.c 2.1 1993/06/18 20:20:33 MH Rel MH $";
#endif
/*man-start*********************************************************************
nl() - enable/disable newline control
X/Open Description: nl()
This function enables the translation of newline into a
carriage return and a line-feed on output, and a carriage return
is translated into a newline on input. Initially, the translations
do occur. By disabling these translations, curses is able to
make better use of the line-feed capability, resulting in faster
cursor motion.
PDCurses Description:
X/Open Return Value:
The nl() function returns OK on success and ERR on error.
X/Open Errors:
No errors are defined for this function.
Portability:
PDCurses int nl( void );
X/Open Dec '88 int nl( void );
BSD Curses nonl() defined as a macro
SYS V Curses int nl ( void );
**man-end**********************************************************************/
int nl(void)
{
#ifdef PDCDEBUG
if (trace_on) PDC_debug("nl() - called\n");
#endif
_cursvar.autocr = TRUE;
return( OK );
}